package com.xiaoqi.api.service.Impl;

import com.xiaoqi.api.mapper.SchoolMapper;
import com.xiaoqi.api.service.SchoolService;
import com.xiaoqi.api.vo.SchoolVO;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Component
public class SchoolServiceImpl implements SchoolService {

    @Resource
    SchoolMapper schoolMapper;


    @Override
    public SchoolVO login(String loginName, String password) {
        //密码加密
        //password = DigestUtils.md5DigestAsHex(password.getBytes());
        return schoolMapper.login(loginName,password);
    }
}
